<?php
//setTireInfoMount
require_once("lib/db_connection.php");
$tire_id = $_GET["tire_id"];

$query_select ="SELECT tire_id, tire_SN, cost,curr_tread, curr_psi FROM tire_inventory_tbl WHERE tire_id='".$tire_id."'";
$result_select = mysql_query($query_select) or die("SELECT LOCS ".mysql_error());

$row_select = mysql_fetch_array($result_select);

$tire_id = $row_select['tire_id'];
$sn = $row_select['tire_SN'];
$cost = $row_select['cost'];
$tread = $row_select['curr_tread'];
$psi = $row_select['curr_psi'];
/*$start_min = $row_select['start_min'];
$stop_hrs = $row_select['stop_hrs'];
$stop_min = $row_select['stop_min'];
$hrs = $row_select['hrs'];
$total_hrs = $row_select['total_hrs'];
$last_odometer= $row_select['last_odometer'];
$arrival_odometer = $row_select['arrival_odometer'];
$miles = $row_select['miles'];
$client = $row_select['client'];*/

//$arr_string = "'$sn','$vin','$start_min','$stop_hrs','$stop_min','$hrs','$total_hrs','$last_odometer','$arrival_odometer','$miles','$client'";

//echo "new Array($arr_string)";
//echo $sn;
//$arr_string = "'$sn','$cost','$tire_id'";
$arr_string = "'$sn','','$tire_id','$tread','$psi'";
echo "new Array($arr_string)";
?>
